﻿<%@ Page Language="C#" MasterPageFile="~/manage/manage.Master" AutoEventWireup="true" CodeBehind="pages.aspx.cs" Inherits="SimpleSocxs.manage.pages" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="common_table">
    <tr>
        <th>ID</th>
        <th>Page Name</th>
        <th>&nbsp;</th>
    </tr>
    <tr>
        <td>New</td>            
        <td>
            <asp:TextBox ID="txtNewPageName" runat="server" />
            template:
            <asp:DropDownList ID="ddlTemplates" runat="server">
                <asp:ListItem Text="template-white" Value="white" />
                <asp:ListItem Text="template-black" Value="black" />
            </asp:DropDownList>
        </td>
        <td><asp:LinkButton ID="btnNewAddPage" runat="server" Text="Add" OnClick="OnAddPage" /></td>
    </tr>
    <asp:Repeater ID="rpt" runat="server">
        <ItemTemplate>
        <tr>
            <td><%#Eval("ID")%></td>
            <td><%#Eval("Name")%></td>
            <td>
                <a target="_blank" href='<%#SimpleSocxs.Helper.GetPageUrlByID((int)Eval("ID"))%>'>View</a>
                <a target="_blank" href='<%#"page_stream.aspx?id=" + Eval("ID")%>'>Edit</a>
                <asp:LinkButton ID="btnDeletePage" runat="server" Text="Delete" OnClick="OnDeletePage" CommandArgument='<%#Eval("ID")%>' />
            </td>
        </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
</asp:Content>